package com.aaa.dao;

import com.aaa.entity.Tuku;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@Repository
public interface TukuMapper extends Mapper<Tuku> {

    List<Map> queryAll(Tuku tuku);

    @Update("update tuku set timu=#{timu},daan1=#{daan1},daan2=#{daan2},daan3=#{daan3},daan4=#{daan4} where id = #{id}")
    Integer update(Tuku tuku);
}
